package com.lei.design.strategy;

import com.lei.design.strategy.behavior.fly.FlyNoWay;
import com.lei.design.strategy.behavior.fly.FlyWithWings;
import com.lei.design.strategy.behavior.quack.MuteQuack;
import com.lei.design.strategy.behavior.quack.Squeak;
import com.lei.design.strategy.behavior.swim.SwimWithWings;

/**
 * @Author LeiXiaoLei
 * @Date 2022/5/12 16:50
 * @Version 1.0
 */
public class DecoyDuck extends Duck {
    public DecoyDuck() {
        setFlyBehavior(new FlyWithWings());
        setQuackBehavior(new Squeak());
        setSwimBehavior(new SwimWithWings());
    }

    @Override
    public void display() {
        System.out.println("诱饵鸭子");
    }
}
